package com.yx.modules.api.service.impl;


import com.yx.modules.api.dao.TbRationDao;
import com.yx.modules.api.entity.TbRation;
import com.yx.modules.api.service.TbRationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbRationServiceImpl implements TbRationService {
	@Autowired
	private TbRationDao rationDao;
	
	@Override
	public TbRation queryObject(Integer id){
		return rationDao.queryObject(id);
	}
	
	@Override
	public List<TbRation> queryList(Map<String, Object> map){
		return rationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return rationDao.queryTotal(map);
	}
	
	@Override
	public void save(TbRation ration){
		rationDao.save(ration);
	}
	
	@Override
	public void update(TbRation ration){
		rationDao.update(ration);
	}
	
	@Override
	public void delete(Integer id){
		rationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		rationDao.deleteBatch(ids);
	}

	@Override
	public List<TbRation> findAll() {
		return rationDao.findAll();
	}

}
